import os
import sys
from PyQt5.QtWidgets import *
from PyQt5.QtGui import *
from PyQt5.QtCore import *

class HA_Core(object):

    def __init__(self):
        super(HA_Core, self).__init__()


    def exc(self,hal):

        exec


class HA_UI(QWidget):

    def __init__(self):
        super(HA_UI, self).__init__()
        self.IMG_PATH=os.path.join(os.path.dirname(__file__),'imgs','cgai.png')

        self.main_layout=QVBoxLayout()
        self.hSplitter = QSplitter(Qt.Horizontal)
        self.right_frame = QFrame()
        self.right_layout=QVBoxLayout()

        self.log_frame=QFrame()
        self.logo_img_layout=QHBoxLayout()
        self.log_frame.setLayout(self.logo_img_layout)
        self.logo_img_label=QLabel()
        self.logo_img_label.setPixmap(QPixmap(self.IMG_PATH))
        self.logo_label=QLabel('欢迎使用houdini语音助手')
        self.logo_img_layout.addWidget(self.logo_img_label)
        self.logo_img_layout.addWidget(self.logo_label)

        self.parm_layout=QVBoxLayout()
        self.id_layout=QHBoxLayout()
        self.id_label=QLabel('ID:')
        self.id_edit=QLineEdit()
        self.id_layout.addWidget(self.id_label)
        self.id_layout.addWidget(self.id_edit)
        self.inter_

        self.right_layout.addWidget(self.log_frame)
        self.right_layout.addWidget(self.)
